//
//  CustomAlertView.h
//  MicrowaveInteractionLight
//
//  Created by maple on 2016/12/17.
//  Copyright © 2016年 maple. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CustomAlertView;
@protocol CustomAlertViewDelegate <NSObject>

-(void)alertView:(CustomAlertView*)alertView didClickButtonAtIndex:(NSInteger)index;

@end

@interface CustomAlertView : UIView
@property(nonatomic,assign) id<CustomAlertViewDelegate>delegate;

+(instancetype)alertViewWithTitle:(NSString*)title messageView:(UIView*)messageView ButtonsWithSureButtonTitle:(NSString*)sureButtonTitle andButtonsWithCancelButtonTitle:(NSString*)cancelButtonTitle;

//在进入下一个控制器的时候可以在dealloc方法中，将弹框移除
+(void)dissmiss;
@end
